/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: Lyn
 * Date: 2025-01-24
 * Time: 8:59
 */
class Animal{
    String name;
    int age;
    public Animal(String name,int age){
        this.name = name;
        this.age = age;
        bark();
    }
    public void bark(){
        System.out.println(name + "旺旺旺！！");
    }
}
public class text {
    public static void main(String[] args) {
        Animal animal = new Animal("小狗",10);

    }
}
